//aux functions
#ifndef DODO_LIDAR_AUX
#define DODO_LIDAR_AUX

typedef long long DodoTimeInt;

bool IsLeapYear(int YYYY);
DodoTimeInt YYYYMMDD2Int(int YYYY, int MM, int DD);   //return the daynum since 20000101, e.g. 20000101=0
DodoTimeInt YYYYMMDD2Int(string str);
DodoTimeInt YYYYMMDDhhmmss2Int(int YYYY, int MM, int DD, int hh, int mm, int ss); //take care of the long int limit: 2147483647!!  should be OK not until the year 2064
DodoTimeInt YYYYMMDDhhmmss2Int(string str);
string Int2YYYYMMDDhhmmss(DodoTimeInt secnum);
string Int2YYYYMMDD(int daynum);

//You may need to rewrite this function if the file name format changes.
bool IsTheFileInTheTaskTimePeriod(string fileFullName, DodoTimeInt taskStartTimeInt, DodoTimeInt taskEndTimeInt);

double interp(double x1, double y1, double x2, double y2, double x);
void OnHelp();

#endif